package commons.entity;

import java.awt.*;
import java.awt.event.InputEvent;

public class MouseRobot extends absMyMouse{
    Robot rb;

    {
        try {
        rb = new Robot();
    } catch (AWTException e) {
        e.printStackTrace();
    }
    }

    @Override
    public void mouseWhell(int num) {
        rb.mouseWheel(num);
    }

    @Override
    public void mousePress() {
        rb.mousePress(InputEvent.BUTTON1_MASK);
    }

    @Override
    public void mouseRelease() {
        rb.mouseRelease(InputEvent.BUTTON1_MASK);
    }

    @Override
    public void mouseMove(int x, int y) {
        rb.mouseMove(x,y);
    }
}
